﻿Imports Newtonsoft.Json

''' <summary>
''' 余额查询实体
''' </summary>
Public Class Balance

	''' <summary>
	''' 状态码
	''' </summary>
	''' <returns></returns>
	<JsonProperty("code")>
	Public Property Code As Integer

	''' <summary>
	''' 余额数据
	''' </summary>
	''' <returns></returns>
	<JsonProperty("data")>
	Public Property Data As DataType

	''' <summary>
	''' 标识码
	''' </summary>
	''' <returns></returns>
	<JsonProperty("scode")>
	Public Property Scode As String

	''' <summary>
	''' 状态
	''' </summary>
	''' <returns></returns>
	<JsonProperty("status")>
	Public Property Status As Boolean

	''' <summary>
	''' 余额数据
	''' </summary>
	Public Class DataType

		''' <summary>
		''' 可用余额，包括现金余额和代金券余额, 当它小于等于 0 时, 用户不可调用推理 API
		''' </summary>
		''' <returns></returns>
		<JsonProperty("available_balance")>
		Public Property AvailableBalance As Double

		''' <summary>
		''' 代金券余额, 不会为负数
		''' </summary>
		''' <returns></returns>
		<JsonProperty("voucher_balance")>
		Public Property VoucherBalance As Double

		''' <summary>
		''' 现金余额, 可能为负数, 代表用户欠费, 当它为负数时, available_balance 为 voucher_balance 的值
		''' </summary>
		''' <returns></returns>
		<JsonProperty("cash_balance")>
		Public Property CashBalance As Double

	End Class



End Class
